Estoy tratando de construir un mapa con agrupamiento. Al principio, renderizar todo funciona bien, pero tan pronto como un usuario intenta mover el mapa o hacer zoom, vuelvo a calcular las posiciones de los marcadores/grupos y la aplicación se interrumpe en iOS con el error: Excepción lanzada al ejecutar el bloque de IU: * -[__NSDictionaryM setObject :forKeyedSubscript:]: la clave no puede ser nula
o
cuando filtro los marcadores o cambio en los datos de la matriz de marcadores, aparece el mismo error
<MapView ref={mapRef} rotateEnabled={false} shouldRasterizeIOS mapType="standard" provider={PROVIDER_GOOGLE} style={styles.map} initialRegion={INITIAL_REGION} animationEnabled > {data && data?.map(item => ( <CustomMarker item={item} key={item?.id} setSelectedMarkerId={(row: any) => { mapRef?.current?.animateToRegion( { latitude: Number(row?.lat), longitude: Number(row?.long), latitudeDelta: 0.06, longitudeDelta: 0.06, }, 1000, ); }} coordinate={{ latitude: Number(item?.lat), longitude: Number(item?.long), }} /> ))} </MapView>Dependencias: - react-native-map-clustering react-native-maps